<?php

namespace app\common\validate\Hotel;

// 引入Thinkphp底层的验证器
use think\Validate;

/**
 * 定义收藏验证器
 */
class Collect extends Validate{
    // 设置我们要验证的字段规则
    protected $rule = [
        'busid' => ['require'],
        'roomid' => ['require']
    ];

    /**
     * 设置错误的提示信息
     */
    protected $message = [
        'busid.require' => '用户未知',
        'roomid.require' => '房间未知'
    ];

    /**
     * 设置验证器的场景
     */
    protected $scene = [
    ];
}

?>
